package com.example.demo.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * goods对象 goods
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long gid;

    /** 类别编号 */

    private Long cid;

    /** 商品名称 */

    private String gname;

    /** 商品图片 */

    private String gimg;

    /** sn号 */

    private String gsn;

    /** 原价 */

    private BigDecimal price;

    /** 售价 */

    private BigDecimal saleprice;

    /** 商品描述 */

    private String description;

    /** 详细标题 */

    private String detailtitle;

    /** 库存 */

    private Long stock;

    /** 预警库存 */

    private Long lowstock;

    /** 单位 */

    private String unit;

    /** 重量 */

    private BigDecimal weight;

    /** 状态 */

    private Long publishstate;

    /** 赠送的积分 */

    private Long giftpoint;

    /** 审核状态 */

    private Long verifystate;

    /** 到货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sendtime;

    /** 已销售额 */

    private Long salednum;

    /** 总销售量 */

    private Long saletotal;

    /** 备注 */

    private String note;

    /** 排序 */

    private Long sort;

    public void setGid(Long gid) 
    {
        this.gid = gid;
    }

    public Long getGid() 
    {
        return gid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setGname(String gname) 
    {
        this.gname = gname;
    }

    public String getGname() 
    {
        return gname;
    }
    public void setGimg(String gimg) 
    {
        this.gimg = gimg;
    }

    public String getGimg() 
    {
        return gimg;
    }
    public void setGsn(String gsn) 
    {
        this.gsn = gsn;
    }

    public String getGsn() 
    {
        return gsn;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setSaleprice(BigDecimal saleprice) 
    {
        this.saleprice = saleprice;
    }

    public BigDecimal getSaleprice() 
    {
        return saleprice;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setDetailtitle(String detailtitle) 
    {
        this.detailtitle = detailtitle;
    }

    public String getDetailtitle() 
    {
        return detailtitle;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setLowstock(Long lowstock) 
    {
        this.lowstock = lowstock;
    }

    public Long getLowstock() 
    {
        return lowstock;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setPublishstate(Long publishstate) 
    {
        this.publishstate = publishstate;
    }

    public Long getPublishstate() 
    {
        return publishstate;
    }
    public void setGiftpoint(Long giftpoint) 
    {
        this.giftpoint = giftpoint;
    }

    public Long getGiftpoint() 
    {
        return giftpoint;
    }
    public void setVerifystate(Long verifystate) 
    {
        this.verifystate = verifystate;
    }

    public Long getVerifystate() 
    {
        return verifystate;
    }
    public void setSendtime(Date sendtime) 
    {
        this.sendtime = sendtime;
    }

    public Date getSendtime() 
    {
        return sendtime;
    }
    public void setSalednum(Long salednum) 
    {
        this.salednum = salednum;
    }

    public Long getSalednum() 
    {
        return salednum;
    }
    public void setSaletotal(Long saletotal) 
    {
        this.saletotal = saletotal;
    }

    public Long getSaletotal() 
    {
        return saletotal;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }




}
